package com.ybwh.springboot2.common.mybatis.plugin.result.sensitive;

import cn.hutool.core.text.CharSequenceUtil;
import org.springframework.stereotype.Service;

@Service
public class CustomMaskServiceImpl implements CustomMaskService {
    @Override
    public String maskData(String data) {
        //第一个字符明文外，其他都加*处理
        return CharSequenceUtil.hide(data, 1, data.length());
    }
}